package com.qf.controller;

import com.alibaba.fastjson.JSON;
import com.qf.entity.GoodType;
import com.qf.service.GoodTypeService;
import com.qf.service.impl.GoodTypeServiceImpl;
import jdk.nashorn.internal.runtime.JSONFunctions;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @Author AzureSky_X
 * @Date 2020/11/17 22:03
 * @Version 1.0
 */
@WebServlet(value = "/goodType")
public class GoodTypeController extends BaseController {
    GoodTypeService service=new GoodTypeServiceImpl();
    public String goodTypeAjax(HttpServletRequest request, HttpServletResponse response){
        List<GoodType> list=service.goodTypeAjax();
        String s= JSON.toJSONString(list);
        return s;

    }
}
